package com.feemanage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.framework.config.BigDecimalSerializer;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 项目经费卡入账-管理费
 */
@Data
@TableName("biz_manage_fee")
public class BizManageFee {

    private static final long serialVersionUID = 1L;

    /** 自增ID */
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

    /** 项目ID */
    private String projectId;

    /** 费用代码 */
    private String subjectCode;

    /** 费用名称 */
    private String subjectName;

    /** 费用金额 */
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal subjectFee;

    /** 经费卡号id */
    private String feeChargerId;

    /** 入账id */
    private String claimId;

    /** 入账类型 */
    private String bizType;

    /** 经费卡号 */
    private String feeCardNum;

    /** biz_project_income.id */
    private String incomeId;

    /** 输入方式 */
    private String computeWay;

    /** 累计管理费 */
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal splitManageFee;

    /**
     * 计算规则
     */
    @TableField(exist = false)
    private String computerule;
}
